package instance

import "time"

// SlowLog 慢日志记录
type SlowLog struct {
	Host string `json:"host"`
	Port uint   `json:"port"`
	// A unique progressive identifier for every slow log entry.
	ID int64 `json:"id"`
	// The unix timestamp at which the logged command was processed.
	Timestamp time.Time `json:"timestamp"`
	// The amount of time needed for its execution, in microseconds.
	DurationMicroseconds int64 `json:"duration_microseconds"`
	// The array composing the arguments of the command.
	Command string `json:"command"`
	// Client IP address and port (4.0 only).
	ClientHost string `json:"client_host"`
	// Client name if set via the CLIENT SETNAME command (4.0 only).
	ClientName string `json:"client_name"`
	Tag        string `json:"tag"`
}
